define(["module", "ol3", "../Tile", "react"], function (module, ol, Tile, React) {
    "use strict";

    var InitPage = React.createClass({
        displayName: "InitPage",
        componentDidMount: function componentDidMount() {
            var map = new ol.Map({
                target: 'map',
                layers: [new ol.layer.Tile({
                    source: new ol.source.OSM()
                })],
                view: new ol.View({
                    center: ol.proj.fromLonLat([116, 41]),
                    zoom: 4
                })
            });
        },
        render: function render() {
            return React.createElement(
                "div",
                { className: "container" },
                React.createElement(
                    Tile,
                    { header: "初始化" },
                    React.createElement("div", { id: "map" })
                )
            );
        }
    });

    module.exports = InitPage;
});
